package ooday03.test;

import java.util.Scanner;

public class Addition {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score = 0;
        for (int i = 0; i < 10; i++) {
            int a = (int)(Math.random()*100);
            int b = (int)(Math.random()*100);
            System.out.println(a+"*"+b+"=");
            int num = scanner.nextInt();
            if(num==a*b){
                score++;
                System.out.println("答对了");
            }else {
                System.out.println("答错了");
            }
        }
        System.out.println("您的总分数为"+score);
    }
}
